//
//  PhotoViewController.swift
//  上海微博
//
//  Created by zz on 16/3/11.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class PhotoViewController: UIViewController {

    private let color: UIColor
    init(color: UIColor){
    
        self.color = color
        super.init(nibName: nil, bundle: nil)
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = color
    }

    
    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        print("\(classForCoder)\(color)")
    }

    deinit{
    
        print("dealloc")
    }

}
